package day8.hmoework1;

/**
 * 商户名类
 */
public class Shop {
    //商店老板名
    public String name;
    //商店名
    public String shopname;
    public Shop(){}
    public Shop(String name,String shopname){
        this.name = name;
        this.shopname = shopname;
    }
    public void pay(Taxbureau taxbureau,Tax tax){
        System.out.println(this.shopname + "的"+ this.name + "去"+ taxbureau.name +"缴"+ tax.taxation   );
    }

    public static void main(String[] args) {
        //产生商户名
        Shop shop = new Shop("李老板","小李超市");
        Shop shop1 = new Shop("罗老板","小罗超市");
        //产生税务局名
        Taxbureau taxbureau = new Taxbureau("武侯区税务局");
        Taxbureau taxbureau1 = new Taxbureau("温江区税务局");
        //产生税类名
        Tax tax = new Tax("个人所得税");
        Tax tax1 = new Tax("商品税");

        shop.pay(taxbureau,tax1);
        shop1.pay(taxbureau1,tax);

    }
}
